package com.guang.springbootjacson.controller;

import com.guang.springbootjacson.bean.TestThreeBean;
import com.guang.springbootjacson.bean.TestTwoBean;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Date;

/**
 *
 * 为null的值在页面上不显示，不为null的才显示
 *    default-property-inclusion: non_null
 * @author liguang
 * @date 2022/6/1 16:38
 */
@RestController
public class TestThreeController {

    @RequestMapping(path = "three")
    public TestThreeBean getTestOneBean(){
        TestThreeBean testThreeBean = new TestThreeBean();
        testThreeBean.setId(1);
        return testThreeBean;
    }
}
